package org.base.common.util;

import lombok.Setter;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * @author He mingliang
 * @date 2020/7/29
 */
public class AsyncUtils {

    @Setter
    private static ThreadPoolTaskExecutor executor;

    public static void execute(Runnable runnable) {
        executor.execute(runnable);
    }
}
